home *** CD-ROM | disk | FTP | other *** search
-
-
-
- mmmmqqqq____sssseeeennnndddd((((3333cccc)))) mmmmqqqq____sssseeeennnndddd((((3333cccc))))
-
-
-
- NNNNAAAAMMMMEEEE
- _mmmm_qqqq______ssss_eeee_nnnn_dddd - send a message to a queue
-
- CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_mmmm_qqqq_uuuu_eeee_uuuu_eeee_...._hhhh_>>>>
-
- _iiii_nnnn_tttt _mmmm_qqqq______ssss_eeee_nnnn_dddd _((((_mmmm_qqqq_dddd______tttt _m_q_d_,,,, _cccc_oooo_nnnn_ssss_tttt _cccc_hhhh_aaaa_rrrr _****_m_s_g_p_t_r_,,,, _ssss_iiii_zzzz_eeee______tttt _m_s_g_l_e_n_,,,, _uuuu_nnnn_ssss_iiii_gggg_nnnn_eeee_dddd _iiii_nnnn_tttt
- _m_s_g__p_r_i_o_))))_;;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _mmmm_qqqq______ssss_eeee_nnnn_dddd sends the message at address _m_s_g_p_t_r, of size _m_s_g_l_e_n bytes, to the
- message queue named by _m_q_d.
-
- The message is queued in priority order, as specified by _m_s_g_p_r_i_o. The
- larger the numerical value of the priority, the more important the
- message. Messages with same priorities are queued in FIFO order. The
- value of _m_s_g_p_r_i_o must be less than {_MMMM_QQQQ______PPPP_RRRR_IIII_OOOO______MMMM_AAAA_XXXX}.
-
- A message queue is full when the number of the messages queued equals the
- value the of _m_q__m_a_x_m_s_g attribute of the queue. If the OOOO____NNNNOOOONNNNBBBBLLLLOOOOCCCCKKKK flag is
- set for the message queue descriptor _m_q_d, _mmmm_qqqq______ssss_eeee_nnnn_dddd will not block when the
- queue is full [see _mmmm_qqqq______ssss_eeee_tttt_aaaa_tttt_tttt_rrrr(3c)]. Otherwise, _mmmm_qqqq______ssss_eeee_nnnn_dddd will block until
- either space becomes available to queue the message, or _mmmm_qqqq______ssss_eeee_nnnn_dddd is
- interrupted by a signal.
-
- If multiple processes are waiting to send a message to the queue, the
- highest priority process will be unblocked to queue its message when
- space becomes available. Processes with equal priorities, blocked waiting
- to queue a message, are unblocked in FIFO order when queue space becomes
- available.
-
- _mmmm_qqqq______ssss_eeee_nnnn_dddd will fail if one or more of the following conditions are true:
-
- [EAGAIN] The _OOOO______NNNN_OOOO_NNNN_BBBB_LLLL_OOOO_CCCC_KKKK flag is set for the queue descriptor and
- the queue is full.
-
- [EBADF] The message queue descriptor, _m_q_d, is not valid or the
- queue was not opened for writing.
-
- [EINTR] The _mmmm_qqqq______ssss_eeee_nnnn_dddd system call was interrupted by a signal.
-
- [EINVAL] The value of _m_s_g_p_r_i_o is not less than {_MMMM_QQQQ______PPPP_RRRR_IIII_OOOO______MMMM_AAAA_XXXX}.
-
- [EMSGSIZE] The size of the message, _m_s_g_l_e_n, is greater than the value
- of the _m_q__m_a_x_s_i_z_e attribute of the queue.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _mmmm_qqqq______oooo_pppp_eeee_nnnn(3c), _iiii_nnnn_tttt_rrrr_oooo(3c), _mmmm_qqqq______uuuu_nnnn_llll_iiii_nnnn_kkkk(3c), _mmmm_qqqq______rrrr_eeee_cccc_eeee_iiii_vvvv_eeee(3c), _mmmm_qqqq______gggg_eeee_tttt_aaaa_tttt_tttt_rrrr(3c),
- _mmmm_qqqq______nnnn_oooo_tttt_iiii_ffff_yyyy(3c),
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- mmmmqqqq____sssseeeennnndddd((((3333cccc)))) mmmmqqqq____sssseeeennnndddd((((3333cccc))))
-
-
-
- DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
- Upon successful completion, a value of 0 is returned and the message is
- added to the queue. Otherwise, the message is not added to the queue, a
- value of -1 is returned and _eeee_rrrr_rrrr_nnnn_oooo is set to indicate the error.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-